package com.base.taskreports.task.job;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.base.taskreports.common.utlis.DateUtils;
import com.base.taskreports.reports.entiyt.master.TIndicatorsEntity;
import com.base.taskreports.reports.service.TblCouponOperaFlowService;
import com.base.taskreports.reports.service.TblDiscountTransService;
import com.base.taskreports.reports.service.impl.TIndicatorsServiceImpl;
import com.base.taskreports.task.service.PqlService;
import org.springframework.beans.factory.annotation.Autowired;

import com.base.taskreports.common.utlis.DateUtil;
import com.base.taskreports.task.entity.TimeTaskEntity;
import com.base.taskreports.task.entity.UserMasterEntity;
import com.base.taskreports.task.service.TimedTaskService;
import com.base.taskreports.task.service.UserMasterService;
import com.base.taskreports.task.service.UserSalveService;
import com.vip.saturn.job.AbstractSaturnJavaJob;
import com.vip.saturn.job.SaturnJobExecutionContext;
import com.vip.saturn.job.SaturnJobReturn;

public class PqlJob extends AbstractSaturnJavaJob {

	@Autowired
	private PqlService pqlService;
	
	@Override
	public SaturnJobReturn handleJavaJob(String jobName, Integer shardItem, String shardParam,
			SaturnJobExecutionContext shardingContext) throws InterruptedException {

		String strDate = shardingContext.getJobParameter();
		// 票劵-领取 跑批
		pqlService.getPQL_M001(strDate);
		pqlService.getPQL_M002(strDate);

		// TODO Auto-generated method stub
		return new SaturnJobReturn("I am the return result of shard item " + shardItem);
	}

}
